package com.beta.cms.common.annotation.impl;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Service;

/**
 * @ClassName: DataAspect
 * @Description: AOP切面
 * @author xp
 * @date 2015年12月18日 下午3:13:07
 *
 */
@Service
@Order(value = Integer.MIN_VALUE)
@Aspect
public class DataAspect {
	protected final Logger logger = LoggerFactory.getLogger(this.getClass());

	@Around("@annotation(com.beta.cms.common.annotation.DataAnnotation)")
	public Object sendEvent(ProceedingJoinPoint point) throws Throwable {
		Object ss = null;
		logger.info("我是第0次劝不住");
		ss = point.proceed();
		logger.info("我是第2次劝不住");
		return ss;
	}
}
